package org.crown.kings.client.model;

public class DataGenerator 
{
	private static String[] CITIES = new String[] {"Springfield", "Gunderville", "Big City",
		"Metropolis", "Ballyho", "Consternation", "Stalingrad", "North Haberbrook",
		"Ogden", "Cooper", "Hadlyburg", "Gotham City", "Fenton", "Dead End",
		"Happyville", "Scary", "Rome", "Castle Danger", "Averageville", "Boot Hill",
		"Abner", "Bumbry", "Custer", "Drab", "Essex", "Fenton", "Grooberville",
		"Hampton", "Ismus", "Jansen's Folley", "Klobber", "Lamton", "Menelaus",
		"Ned's Town", "Obsidian", "Pandora", "Querney", "Rigmarole", "Stanley",
		"Termoil", "Unlikely", "Vindaloo", "Wabishah", "X Marks The Spot", "Yearly",
		"Zounds"};

	private static String[] STATES = new String[] {"Alabama", "Alaska", "Arizona", "Arkansas",
		"California", "Colorado", "Connecticut", "Delaware", "Florida", "Geordia",
		"Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", 
		"Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", 
		"Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire",
		"New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota",
		"Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina",
		"South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington",
		"West Virginia", "Wisconsin", "Wyoming"};

	private static String[] STREETS = new String[] {"1st Street", "2nd Street", "3rd Street",
		"4th Street", "5th Street", "6th Street", "7th Street", "8th Street",
		"9th Street", "10th Street", "Lazy Ln.", "Last Street", "Dark Ave.", 
		"Pensylvannia Ave.", "Left Foot Drive"};
	
	
	public static String getAddress()
	{
		int i = (int)(Math.random() * STREETS.length);
		String street = STREETS[i];
		
		int num = (int)(Math.random() * 1000);
		
		return num + " " + street;
	}
	
	public static String getCity()
	{
		int i = (int)(Math.random() * CITIES.length);
		
		return CITIES[i];
	}
	
	public static String getState()
	{
		int i = (int)(Math.random() * STATES.length);
		
		return STATES[i];
	}
	
	public static String getPhoneNum()
	{
		String phoneNum = "(";
		
		for(int i = 0; i < 3; i++)
		{
			phoneNum = phoneNum + "" + (int)(Math.random() * 10);
		}
		
		phoneNum = phoneNum + ") ";
		
		for(int i = 0; i < 3; i++)
		{
			phoneNum = phoneNum + "" + (int)(Math.random() * 10);
		}
		
		phoneNum = phoneNum + "-";
		
		for(int i = 0; i < 4; i++)
		{
			phoneNum = phoneNum + "" + (int)(Math.random() * 10);
		}
		
		return phoneNum;
	}
	
	public static String getPostalCode()
	{
		String postalCode = "";
		
		for(int i = 0; i < 5; i++)
		{
			postalCode = postalCode + "" + (int)(Math.random() * 10);
		}
		
		postalCode = postalCode + "-";
		
		for(int i = 0; i < 4; i++)
		{
			postalCode = postalCode + "" + (int)(Math.random() * 10);
		}
		
		return postalCode;
	}
}
